<template>
  <div>
    <div class="nav-res">
      <img src="@/assets/computer.png" alt="电脑" class="computer">
      <h1>AD<span>MIN</span></h1>
      <div class="nav_div_head">
        
        <span >欢迎管理员:{{name}}</span>
      <img src="@/assets/20211109164539.png" alt="" class="h_portrait">
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        
        name: sessionStorage.getItem("admin")
      }
    },
    methods: {
      
    },
  }
</script>

<style scoped>
/* 最上面导航条 */

.nav-res{
  background-color: #1F2D3D;
  width: 100%;
  height: 80px;
  position: relative;
  color: #fff;
  
}
  .computer{
    margin: 15px;
  }
  .nav-res h1{
    display: inline-block;
    font-size: 25px;
    line-height: 80px;
  }
.nav-res span{
  font-style: italic;
  color: #409EFF;
}
.h_portrait{
  
  width: 38px;
     height: 38px;
     float: right;
     border-radius: 50%;
}
.nav_div_head{
  display: inline-block;
   position: absolute;
   top: 50%;
   right: -4%;
   transform: translate(-50%,-50%);
   
}
.nav_div_head span{
  color: #fff;
  line-height: 60px;
}
.nav_div_head img{
  margin-top:10px ;
  margin-left:20px ;
}

/* 头结束 */
</style>